package com.lanswon.icc.common.security.exception;


import com.lanswon.icc.common.core.constant.ResultConstant;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * @Description
 * @Author zsw
 * @Date 2019/10/29 12:14
 * @Version V1.0
 **/
public class UnauthorizedException extends OAuth2Exception {
    public UnauthorizedException(String msg, Throwable t) {
        super(msg);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "unauthorized";
    }

    @Override
    public int getHttpErrorCode() {
        return ResultConstant.EX_UNAUTHORIZED;
    }



}